use clap::Parser;
use mycli::cli::{Cli, Cmd};
use mycli::csv;

fn main() -> anyhow::Result<()> {
    let cli: Cli = Cli::parse();
    match cli.csv {
        Cmd::Csv(opts) => {
            csv::to_json_file(&opts.input, &opts.output)?;
        }
    }
    Ok(())
}
